<template>
	<view class="back-btn" @click="onClick">
	    返回
	</view>
</template>

<script>
	export default {
		methods: {
			onClick () {
				uni.navigateBack();
			}
		}
	}
</script>

<style lang="less">
	@text-size: 1em;
	.back-btn {
		// 样式
		width: 150rpx;
		height: 64rpx;
		background-color: rgba(0, 0, 0, 0.5);
		border: 1rpx solid rgba(255, 255, 255, 0.5);
		border-radius: 32rpx;
		color: #fff;
		z-index: 999;
		
		cursor: pointer;
		text-align: center;
		font-size: @text-size;
		line-height: 64rpx;
		
		position: fixed;
		top: var(--status-bar-height);
		left: 20rpx
	}
</style>